﻿using Md.Api.Model.Manage.MdProduct.Request;
using Md.Dapper.Repositories.Md;

namespace Md.Api.Service.Manage.MdProduct;
/// <summary>
/// 通过编号删除产品服务
/// </summary>
public class DeleteMdProductByIdService : ApiBase<RequestDeleteMdProductByIdModel>
{
    /// <summary>
    /// 产品仓储
    /// </summary>
	public MdProductRep mdProductRep { get; set; }
    /// <summary>
    /// 执行
    /// </summary>
    protected override void ExecuteMethod()
    {
        var res = mdProductRep.DeleteMdProductById(Parameter.Ids);

        Result.Data = res;
    }
}

